import requests as re
url='http://www.pxc.jx.cn/'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'}
resp=re.get(url=url,headers=headers)
resp.encoding='utf-8'

page_text = resp.text

fo = open('d:\\exercise\\萍乡学院.html','w',encoding='utf-8')
fo.write(page_text)
print("爬取成功！")
fo.close()
